From f44f795d22a8c9162bf044497bbc29b08a51fb7b Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 22 Oct 2020 07:14:29 +0100 Subject: [PATCH] Skip rather than fail tests if fsspec is too old (which it currently is in Debian) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name fsspec_version.patch --- pandas/tests/io/test_fsspec.py | 2 +- pandas/tests/io/test_pickle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index d64e2d19..5e6842aa 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -20,7 +20,7 @@ text = df1.to_csv(index=False).encode() # type: ignore @pytest.fixture def cleared_fs(): - fsspec = pytest.importorskip("fsspec") + fsspec = pytest.importorskip("fsspec", "0.7.4") memfs = fsspec.filesystem("memory") yield memfs diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py index e4d43db7..36d7ce8c 100644 --- a/pandas/tests/io/test_pickle.py +++ b/pandas/tests/io/test_pickle.py @@ -455,7 +455,7 @@ def test_pickle_generalurl_read(monkeypatch, mockurl): tm.assert_frame_equal(df, result) -@td.skip_if_no("fsspec") +@td.skip_if_no("fsspec", "0.7.4") def test_pickle_fsspec_roundtrip(): with tm.ensure_clean(): mockurl = "memory://afile" -- 2.30.2